package com.huazhen.itrip.biz.service.hoteltradingarea;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripHotelTradingArea;
import com.huazhen.itrip.dao.hoteltradingarea.ItripHotelTradingAreaMapper;
@Service("ItripHotelTradingAreaService")
public class ItripHotelTradingAreaServiceImpl implements ItripHotelTradingAreaService {
	@Autowired
	private ItripHotelTradingAreaMapper itripHotelTradingAreaMapper;
	@Override
	public ItripHotelTradingArea getItripHotelTradingAreaById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelTradingAreaMapper.getItripHotelTradingAreaById(id);
	}

	@Override
	public List<ItripHotelTradingArea> getItripHotelTradingAreaListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelTradingAreaMapper.getItripHotelTradingAreaListByMap(param);
	}

	@Override
	public Integer getItripHotelTradingAreaCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelTradingAreaMapper.getItripHotelTradingAreaCountByMap(param);
	}

	@Override
	public Integer insertItripHotelTradingArea(ItripHotelTradingArea itripHotelTradingArea) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelTradingAreaMapper.insertItripHotelTradingArea(itripHotelTradingArea);
	}

	@Override
	public Integer updateItripHotelTradingArea(ItripHotelTradingArea itripHotelTradingArea) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelTradingAreaMapper.updateItripHotelTradingArea(itripHotelTradingArea);
	}

	@Override
	public Integer deleteItripHotelTradingAreaById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelTradingAreaMapper.deleteItripHotelTradingAreaById(id);
	}

}
